using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TiaoTaoHelper.Wtm.Models;


namespace HengTong.ViewModel._Admin.SysTaskV2Vms
{
    public partial class SysTaskV2TemplateVm : BaseTemplateVM
    {
        [Display(Name = "名称")]
        public ExcelPropety NameExcel = ExcelPropety.CreateProperty<SysTaskV2>(x => x.Name);
        [Display(Name = "类名")]
        public ExcelPropety ClassNameExcel = ExcelPropety.CreateProperty<SysTaskV2>(x => x.ClassName);
        [Display(Name = "描述")]
        public ExcelPropety DescriptionExcel = ExcelPropety.CreateProperty<SysTaskV2>(x => x.Description);
        [Display(Name = "任务类型")]
        public ExcelPropety TaskTypeExcel = ExcelPropety.CreateProperty<SysTaskV2>(x => x.TaskType);
        [Display(Name = "上次运行开始时间")]
        public ExcelPropety StartTimeExcel = ExcelPropety.CreateProperty<SysTaskV2>(x => x.StartTime);
        [Display(Name = "上次运行结束时间")]
        public ExcelPropety EndTimeExcel = ExcelPropety.CreateProperty<SysTaskV2>(x => x.EndTime);
        [Display(Name = "重复次数")]
        public ExcelPropety RepeatExcel = ExcelPropety.CreateProperty<SysTaskV2>(x => x.Repeat);
        [Display(Name = "是否永久重复")]
        public ExcelPropety IsForeverExcel = ExcelPropety.CreateProperty<SysTaskV2>(x => x.IsForever);
        [Display(Name = "延迟秒数")]
        public ExcelPropety IntervalInSecondsExcel = ExcelPropety.CreateProperty<SysTaskV2>(x => x.IntervalInSeconds);
        [Display(Name = "延迟秒数")]
        public ExcelPropety DelaySecondsExcel = ExcelPropety.CreateProperty<SysTaskV2>(x => x.DelaySeconds);
        [Display(Name = "上次运行时长")]
        public ExcelPropety LastRunTimeExcel = ExcelPropety.CreateProperty<SysTaskV2>(x => x.LastRunTime);
        [Display(Name = "Cron表达式")]
        public ExcelPropety CronExcel = ExcelPropety.CreateProperty<SysTaskV2>(x => x.Cron);
        [Display(Name = "上次运行状态")]
        public ExcelPropety LastRunResultExcel = ExcelPropety.CreateProperty<SysTaskV2>(x => x.LastRunResult);
        [Display(Name = "是否启用")]
        public ExcelPropety IsEnableExcel = ExcelPropety.CreateProperty<SysTaskV2>(x => x.IsEnable);
        [Display(Name = "是否运行")]
        public ExcelPropety IsRunExcel = ExcelPropety.CreateProperty<SysTaskV2>(x => x.IsRun);
        public ExcelPropety CreateTimeExcel = ExcelPropety.CreateProperty<SysTaskV2>(x => x.CreateTime);
        public ExcelPropety UpdateTimeExcel = ExcelPropety.CreateProperty<SysTaskV2>(x => x.UpdateTime);

	    protected override void InitVM()
        {
        }

    }

    public class SysTaskV2ImportVm : BaseImportVM<SysTaskV2TemplateVm, SysTaskV2>
    {

    }

}
